home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Think Class Libraries / CDictionary 1.0 / CSmartTETask.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-30  |  1.0 KB  |  35 lines  |  [TEXT/KAHL]

  1. /*****************************************************************************
  2. CSmartTETask
  3.  
  4.     Implements undo for cut, copy, paste, clear, and typing commands.
  5.     Undo is implemented simply by saving off the entire text handle of
  6.     the TEHandle. This is fine for small pieces of text, as in dialogs,
  7.     but for larger pieces of text, a more economical method would be preferred.
  8.  
  9.     by Dan Podwall - you may do anything you please with this code except
  10.     charge for it, with the exception of normal network download charges.
  11.  
  12. SUPERCLASS = CTask
  13. *****************************************************************************/
  14.  
  15. #define _H_CSmartTETask
  16.  
  17. #include "CTask.h"
  18. #include "CSmartEditText.h"
  19.  
  20. struct CSmartTETask : CTask
  21. {
  22.     struct CSmartEditText *itsEditText;
  23.     tTE_Command        itsCommand;
  24.     Handle            undoText;
  25.     Int16            startSel, endSel;
  26.     Boolean            wasDirty;
  27.     
  28.     virtual void ISmartTETask( struct CSmartEditText *theEditText, Int16 firstNameIndex,
  29.                         tTE_Command theCommand);
  30.                         
  31.     virtual void Undo( void);
  32.     
  33.     virtual void Dispose( void);
  34.  
  35. };